package com.weiyuwqj.api.service;

import com.weiyuwqj.api.model.BusItemCollect;
import com.weiyuwqj.api.model.vo.BusItemCollectVo;
import com.weiyuwqj.api.common.PageList;
import com.weiyuwqj.api.common.Paginator;
import com.weiyuwqj.api.model.vo.InvestCollectVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by yxw on 2015/12/28.
 */
public interface BusInvestCollectService {
    PageList getList(Paginator p, Map<String, Object> param);

    List<BusItemCollectVo> getList(Map<String, Object> param);

    Map<String,Object> getCollectByUserId(Integer userId);

    //根据用户id查询预期收益、已获得收益
    List<Map<String, Object>> getProfitByUserId(Integer userId);

    List<Map> getListByUserIdAndTime(Map map);

    List<Map> getMainRepayList(Map map);

    List<Map> getListByUserIdAndNow(Map map);

    //后台首页统计今日明日待还金额
    Map countRepayAmount();

    Map statCollect(Map<String, Object> map);

    //app昨日收益统计
    BigDecimal countYesterdayIncome(Integer userId);

    //app本月收益统计
    BigDecimal countMonthIncome(Integer userId);

    Map checkAccountStat(Map map);

    //根据项目id按项目和用户分类获取待收
    List<InvestCollectVo> getCollectByItemId(Integer itemId);

    //根据项目id统计待收
    Map statCollectByItemId(Integer itemId);

    //根据项目id和userId获取待收记录
    List<BusItemCollect> getCollectByItemIdAndUserId(Integer itemId, Integer userId);
}
